﻿using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using Q.M.Finance.Application.IServices;
using Q.M.Finance.Domain.Entity;
using Q.M.Finance.Infrastruecure.IRepository;
using Q.M.Finance.Infrastruecure.Repository;

namespace Q.M.Finance.Write.API.Controllers
{
    [Route("api/[controller]/[action]")]
    [ApiController]
    public class Expenditure_typeWriteController : ControllerBase
    {
        private readonly IExpenditure_typeServices expenditure_TypeServices;
        public Expenditure_typeWriteController(IExpenditure_typeServices expenditure_TypeServices)
        {
            this.expenditure_TypeServices = expenditure_TypeServices;
        }
        /// <summary>
        /// 显示支出类型表
        /// </summary>
        /// <returns></returns>
        [HttpGet]
        public List<expenditure_type> Getexpenditure_type()
        {
            return expenditure_TypeServices.Getexpenditure_type();
        }
    }
}
